import React, {Component} from 'react';
import { Text, View } from 'react-native';

class Greeting extends Component {
    render(){
        const { name } = this.props
        return (
            <View style={{alignItems: "center", marginTop: 50}}>
                <Text>Hello {name}</Text>
            </View>
        )
    }
}

export default Greeting